package com.web.pay_service.client;

import com.websecondhand.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "tradeClient", url = "http://127.0.0.1:8006", fallback = TradeClientImpl.class)
public interface TradeClient {

    // 下架商品
    @GetMapping(value = {"/item/soldoutitem/{itemID}"})
    R soldoutItem(@PathVariable("itemID") Long itemID);

    @GetMapping(value = "/item /putawayitem/{itemID}")
    R putawayItem(@PathVariable("itemID") Long itemID);

}
